//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class FixBuilding extends LogicCommand {
    private final Integer buildingId;
    private final Integer buildingPart;

    public FixBuilding(int tt, int buildingId, int buildingPart) {
        super(tt);
        this.buildingId = Integer.valueOf(buildingId);
        this.buildingPart = Integer.valueOf(buildingPart);
    }

    public int getCommandId() {
        return 25;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(this.getCommandId());
        stream.writeInt(this.buildingId.intValue());
        stream.writeByte(this.buildingPart.byteValue());
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
